Page({
    data: {},
    onLoad: function(o) {},
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    goToDay: function() {
        wx.navigateTo({
            url: "workReportHistory?type=day"
        });
    },
    goToWeek: function() {
        wx.navigateTo({
            url: "workReportHistory?type=week"
        });
    },
    goToMonth: function() {
        wx.navigateTo({
            url: "workReportHistory?type=month"
        });
    },
    goToActivity: function() {
        wx.navigateTo({
            url: "activityReportHistory"
        });
    },
    goToVisit: function() {
        wx.navigateTo({
            url: "visitHistory"
        });
    }
});